package com.chen.service.impl;

import com.chen.dao.ImportsDao;
import com.chen.model.Imports;
import com.chen.service.ImportService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("importService")
public class ImportServiceImpl implements ImportService {

    @Resource
    ImportsDao importsDao;

    @Override
    public int addImport(Imports imports) {
        return importsDao.addImport(imports);
    }

    @Override
    public int updateImports(Imports imports) {
        return importsDao.updateImports(imports);
    }

    @Override
    public List<Imports> findAllImports() {
        return importsDao.findAllImports();
    }

    @Override
    public Imports findImportsById(Integer import_id) {
        return importsDao.findImportsById(import_id);
    }
}
